package com.bw.auth.feign;

import com.bw.auth.sentinel.RemoteServiceImpl;
import com.bw.common.domain.Admin;
import com.bw.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：HaoYunde
 * @Package：com.bw.auth.feign
 * @Project：hyd-boot
 * @name：RemoteAdminService
 * @Date：2024/6/17 9:11
 */
@FeignClient(value = "hyd-admin",fallbackFactory = RemoteServiceImpl.class)
public interface RemoteAdminService {
    @GetMapping("admin/findAdminByadminPhone")
    public Result<Admin> findAdminByadminPhone(@RequestParam String adminName);
}
